#! /usr/bin/env python
#coding:utf-8

from hashlib import md5
1
__author__ = 'guolt'


def getMd5(self):
    m = md5()
    a_file = open(self, 'r')
    m.update(a_file.read())
    a_file.close()
    return m.hexdigest()


file='/u01/cdnLog/cdn_tmp/idc-cdn2.wuxi.jl/b6d81b360a5672d80c27430f39153e2c.tar.gz'
a=getMd5(file)

print a
